package com.service;

import org.springframework.stereotype.Component;

import java.util.concurrent.Future;

/**
 * @author HuangSuip
 */
@Component
public interface AsyncServer {

    Future<String> doTask1() throws InterruptedException;


    Future<String> doTask2() throws InterruptedException;
}